package com.hetang.domain.enums;

/**
 * Created by Duo Duo on 2017/2/13.
 */
public enum ResponseCodeEnum {
    /**
     * 基本状态
     */
    SUCCESS(200,"处理成功"),
    USER_CHECK_LOGIN(401,"用户未登录，请登录"),
    REQUEST_PARAMETER_ERROR(402,"参数不合法"),//参数不合法
    EXCEPTION(500,"服务器异常"),//异常

    ;

    private int code;
    private String value;

    ResponseCodeEnum(int code){
        this.code = code;
    }

    ResponseCodeEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

}
